﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace Chinaer.Model.Entities
{
    /// <summary>
    /// 商家实体类
    /// </summary>    
    [DataContract]
    [Table("ShangJia")]
    public class Model_ShangJia : Model_Base_Role
    {
        /// <summary>
        /// 商家编号
        /// </summary>              
        [Key]
        [DataMember]
        [Required]
        [Column("ID")]
        public string ID { get; set; }
        /// <summary>
        /// 商家登陆名
        /// </summary>
        [DataMember]
        [Required]
        public string LoginName { get; set; }
        /// <summary>
        /// 商家登陆密码
        /// </summary>
        [DataMember]
        [Required]
        public string LoginPassword { get; set; }

        /// <summary>
        /// 基础信息编号
        /// </summary>   
        public string BasePersonInfoID { get; set; }

        public virtual List<Model_Base_PersonInfo> BasePersonInfos { get; set; }
    }
}
